<html>
<head>
	<title>Error Page</title>
</head>
<body>

<h1>Error!</h1>

<?php
$error_array = array('The file to upload', 'The file title', 'The file description');
?>

<p> You are missing the following input fields: </p>
<ul>
	<?php
	if($_REQUEST["missing-file"]) {
	?>
		<li>
		<?php echo $error_array[0]; ?>
		</li>
	<?php
	}
	?>

	<?php
	if($_REQUEST["missing-title"]) {
	?>
		<li>
			<?php echo $error_array[1]; ?>
		</li>
	<?php
	}
	?>
	
	<?php
	if($_REQUEST["missing-description"]) {
	?>
		<li>
			<?php echo $error_array[2]; ?>
		</li>
	<?php
	}
	?>
</ul>

<p>You can back to the previous page and add the missing input fields: <a href="<?php echo $_SERVER["HTTP_REFERER"]?>">go back to the previous page</a> </p>


</body>
</html>